package com.bytenebula.asteroid.ddl;

import lombok.Getter;

@Getter
public enum DataTypes {
    BOOLEAN("BOOLEAN", "布尔型"),
    TINYINT("TINYINT", "有符号整数"),
    SMALLINT("SMALLINT", "有符号整数"),
    INT("INT", "有符号整数"),
    BIGINT("BIGINT", "有符号整数"),
    LARGEINT("LARGEINT", "有符号整数"),
    FLOAT("FLOAT", "浮点数"),
    DOUBLE("DOUBLE", "浮点数"),
    DECIMAL("DECIMAL", "高精度定点数"),
    DATE("DATE", "日期类型"),
    DATETIME("DATETIMEV2", "日期时间类型"),
    CHAR("CHAR", "定长字符串"),
    VARCHAR("VARCHAR", "变长字符串"),
    STRING("STRING", "变长字符串");

    private final String typeCode;
    private final String typeName;

    DataTypes(String typeCode, String typeName) {
        this.typeCode = typeCode;
        this.typeName = typeName;
    }
}
